package com.niit.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * @program: springcloud
 * @description:
 * @author: XZQ
 * @create: 2019-12-02 12:01
 **/
@Configuration
public class ConfigBean {//--spring application

    //配置负载均衡实现RestTemplate
    @Bean
//    @LoadBalanced
    public RestTemplate getRestTemplate() {
        return new RestTemplate();
    }

}
